package com.ruoyi.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 类别对象 category
 *
 * @author ruoyi
 * @date 2022-02-06
 */
public class Category extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品目录id */
    private Integer categoryID;

    /** 商品目录类别 */
    @Excel(name = "商品目录类别")
    private String categoryName;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    private String icon;

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    /** 目录图片链接 */
    @Excel(name = "目录图片链接")
    private String categoryUrl;

    /** 更新人 */
    @Excel(name = "更新人")
    private Integer updateUser;



    /** 创建人 */
    @Excel(name = "创建人")
    private Integer createUser;

    private Integer parentID;

    public void setCategoryID(Integer categoryID)
    {
        this.categoryID = categoryID;
    }

    public Integer getCategoryID()
    {
        return categoryID;
    }
    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }
    public void setCategoryUrl(String categoryUrl)
    {
        this.categoryUrl = categoryUrl;
    }

    public String getCategoryUrl()
    {
        return categoryUrl;
    }
    public void setUpdateUser(Integer updateUser)
    {
        this.updateUser = updateUser;
    }

    public Integer getUpdateUser()
    {
        return updateUser;
    }
    public void setCreateUser(Integer createUser)
    {
        this.createUser = createUser;
    }

    public Integer getCreateUser()
    {
        return createUser;
    }

    public Integer getParentID() {
        return parentID;
    }

    public void setParentID(Integer parentID) {
        this.parentID = parentID;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("categoryID", getCategoryID())
                .append("parentID", getParentID())
                .append("categoryName", getCategoryName())
                .append("state", getState())
                .append("categoryUrl", getCategoryUrl())
                .append("updateUser", getUpdateUser())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createUser", getCreateUser())
                .toString();
    }
}
